﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="data_list">
		<div class="data_list_title">
		<img src="${pageContext.request.contextPath}/static/images/search_icon.png"/>
		搜索&nbsp;<font color="red">${key }</font>&nbsp;的结果 &nbsp;(总共搜索到&nbsp;${resultTotal}&nbsp;条记录) </div>
		<div class="datas search">
			<ul>
				<c:choose>
					<c:when test="${articleList.size()==0 }">
						<div align="center" style="padding-top: 20px">未查询到结果，请换个关键字试试看！</div>
					</c:when>
					<c:otherwise>
						<c:forEach var="art" items="${articleList }">
					  	  <li style="margin-bottom: 20px">
						  	<span class="title"><a href="${pageContext.request.contextPath}/search/article/${art.id}" target="_blank">${art.title }</a></span>
						  	<span class="summary">摘要: ${art.content }...</span>
						  	<span class="link"><a href="${pageContext.request.contextPath}/search/article/${art.id}">${pageContext.request.contextPath}/search/article/${art.id}</a>&nbsp;&nbsp;&nbsp;&nbsp;发布日期：<fmt:formatDate value="${art.gmtCreate }" type="date" pattern="yyyy-MM-dd HH:mm"/></span>
						  </li>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</ul>
		</div>
		<%--${pageCode }--%>
   </div>

<div>
	<nav>
		<ul class="pagination pagination-sm">
			${pageCode }
		</ul>
	</nav>
</div>